#pragma once


// CLoginDlg dialog

class CLoginDlg : public CDialog
{
	DECLARE_DYNAMIC(CLoginDlg)

public:
	CLoginDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CLoginDlg();
	char const* GetSeatNo() const { return m_seatNo; }
	char const* GetCustomerNo() const { return m_customerNo; }
	char const* GetPassword() const { return m_password; }

// Dialog Data
	enum { IDD = IDD_LOGIN_DLG };

public:
	virtual BOOL OnInitDialog();

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();
	afx_msg void OnBnClickedOk2();
	afx_msg void OnBnClickedCancel2();
	afx_msg void OnClose();

	DECLARE_MESSAGE_MAP()

private:
	void BtnSwitch(BOOL enable = FALSE);
	bool LocalRegist(char const* key);

private:
	CString m_registCode;
	CString m_seatNo;
	CString m_customerNo;
	CString m_password;

};
